﻿using System;
using System.Collections.Generic;
using System.Text;

using ECCIT.Business.Model;

namespace OgilvyOne.UKNow.Model
{
    [Serializable]
    public class EventsImageModel : UploadFileModel
    {
        public int? EventsID { get; set; }              // 活动ID
        public EventsModel Events { get; set; }         // 活动
        public string Extension { get; set; }                // 图片类型（扩展名）
        public string Description { get; set; }         // 图片描述
        public string Tag { get; set; }
        public int State { get; set; }
        public int? Order { get; set; }                 // 显示顺序
        public bool IsRecommendation { get; set; }      // 是否官方推荐
        public DateTime InsertedTime { get; set; }
        public DateTime UpdatedTime { get; set; }
        /*修改人：穆凤凤
      * 修改时间：2012-01-02
      * 修改内容：
      *      添加缩略图路径属性
      *      有mff注释的为本次修改的代码
      */
        //mff
        public string Path1 { get; set; }                // 缩略图片路径

        public EventsImageModel() { }

        public EventsImageModel(int? langID
            , int? id
            , int? eventsID
            , string name
            , string path
            //mff 
            , string path1                                                        
            , string ext
            , string desc
            , string tag
            , int state
            , int? order
            , bool isRecommendation, DateTime insertedTime, DateTime updatedTime)
        {
            this.LanguageID = langID;
            this.ID = id;
            this.EventsID = eventsID;
            this.Name = name;
            this.Path = path;
            //mff 
            this.Path1 = path1;
            this.ThumbnailImagePath = path1;
            this.Extension = ext;
            this.Description = desc;
            this.Tag = tag;
            this.State = state;
            this.Order = order;
            this.IsRecommendation = isRecommendation;
            this.InsertedTime = insertedTime;
            this.UpdatedTime = updatedTime;
            this.FileType = 1;
        }
    }
}
